class HomeEntity {
	int errno;
	HomeData data;
	String errmsg;

	HomeEntity({this.errno, this.data, this.errmsg});

	HomeEntity.fromJson(Map<String, dynamic> json) {
		errno = json['errno'];
		data = json['data'] != null ? new HomeData.fromJson(json['data']) : null;
		errmsg = json['errmsg'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['errno'] = this.errno;
		if (this.data != null) {
      data['data'] = this.data.toJson();
    }
		data['errmsg'] = this.errmsg;
		return data;
	}
}

class HomeData {
	List<HomeDataRecommandlist> recommendList;
	List<HomeDataPopularlist> popularList;
	List<HomeDataAppmanulist> appMenuList;
	List<HomeDataCarousellist> carouselList;

	HomeData({this.recommendList, this.popularList, this.appMenuList, this.carouselList});

	HomeData.fromJson(Map<String, dynamic> json) {
		if (json['recommendList'] != null) {
			recommendList = new List<HomeDataRecommandlist>();(json['recommendList'] as List).forEach((v) { recommendList.add(new HomeDataRecommandlist.fromJson(v)); });
		}
		if (json['popularList'] != null) {
			popularList = new List<HomeDataPopularlist>();(json['popularList'] as List).forEach((v) { popularList.add(new HomeDataPopularlist.fromJson(v)); });
		}
		if (json['appMenuList'] != null) {
			appMenuList = new List<HomeDataAppmanulist>();(json['appMenuList'] as List).forEach((v) { appMenuList.add(new HomeDataAppmanulist.fromJson(v)); });
		}
		if (json['carouselList'] != null) {
			carouselList = new List<HomeDataCarousellist>();(json['carouselList'] as List).forEach((v) { carouselList.add(new HomeDataCarousellist.fromJson(v)); });
		}
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		if (this.recommendList != null) {
      data['recommendList'] =  this.recommendList.map((v) => v.toJson()).toList();
    }
		if (this.popularList != null) {
      data['popularList'] =  this.popularList.map((v) => v.toJson()).toList();
    }
		if (this.appMenuList != null) {
      data['appMenuList'] =  this.appMenuList.map((v) => v.toJson()).toList();
    }
		if (this.carouselList != null) {
      data['carouselList'] =  this.carouselList.map((v) => v.toJson()).toList();
    }
		return data;
	}
}

class HomeDataRecommandlist {
	String name;
	int id;
	String url;

	HomeDataRecommandlist({this.name, this.id, this.url});

	HomeDataRecommandlist.fromJson(Map<String, dynamic> json) {
		name = json['name'];
		id = json['id'];
		url = json['url'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['name'] = this.name;
		data['id'] = this.id;
		data['url'] = this.url;
		return data;
	}
}

class HomeDataPopularlist {
	String name;
	int id;
	String url;

	HomeDataPopularlist({this.name, this.id, this.url});

	HomeDataPopularlist.fromJson(Map<String, dynamic> json) {
		name = json['name'];
		id = json['id'];
		url = json['url'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['name'] = this.name;
		data['id'] = this.id;
		data['url'] = this.url;
		return data;
	}
}

class HomeDataAppmanulist {
	int id;
	String title;
	int type;
	String parameters;
	String url;

	HomeDataAppmanulist({this.id, this.title, this.type, this.parameters, this.url});

	HomeDataAppmanulist.fromJson(Map<String, dynamic> json) {
		id = json['id'];
		title = json['title'];
		type = json['type'];
		parameters = json['parameters'];
		url = json['url'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['id'] = this.id;
		data['title'] = this.title;
		data['type'] = this.type;
		data['parameters'] = this.parameters;
		data['url'] = this.url;
		return data;
	}
}

class HomeDataCarousellist {
	int id;
	int type;
	String parameters;
	String url;

	HomeDataCarousellist({this.id, this.type, this.parameters, this.url});

	HomeDataCarousellist.fromJson(Map<String, dynamic> json) {
		id = json['id'];
		type = json['type'];
		parameters = json['parameters'];
		url = json['url'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['id'] = this.id;
		data['type'] = this.type;
		data['parameters'] = this.parameters;
		data['url'] = this.url;
		return data;
	}
}
